Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable FFmpeg hwaccel when APPIMAGE_BUILD is set #779

Closed
wants to merge 1 commit into from

Conversation

ferdnyc
Copy link
Contributor

@ferdnyc ferdnyc commented Nov 13, 2021

As discussed in OpenShot/openshot-qt#4538, the hwaccel code in FFmpegReader/Writer should be completely disabled, when building for the Linux AppImages. This PR respects the CMake option 'APPIMAGE_BUILD', which we are already setting in the project server builds, and defines the symbol USE_HW_ACCEL=0 for the build. The #ifdefs around the hwaccel code will cause it to be omitted from the compiled classes entirely.

Fixes OpenShot/openshot-qt#4538

@ferdnyc ferdnyc added hardware Issues involving hardware detection or de/encoding build Issues related to compiling or installing libopenshot and its dependencies ffmpeg Issues or PRs involving the a/v processing code labels Nov 13, 2021
@codecov
Copy link

codecov bot commented Nov 13, 2021

Codecov Report

Merging #779 (f51ba3f) into develop (c966918) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #779   +/-   ##
========================================
  Coverage    49.02%   49.02%           
========================================
  Files          183      183           
  Lines        15683    15683           
========================================
  Hits          7688     7688           
  Misses        7995     7995           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c966918...f51ba3f. Read the comment docs.

@JacksonRG
Copy link
Collaborator

LGTM!

@ferdnyc ferdnyc closed this Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues related to compiling or installing libopenshot and its dependencies ffmpeg Issues or PRs involving the a/v processing code hardware Issues involving hardware detection or de/encoding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Linux AppImage: Possible issues importing video with certain GPUs
2 participants